package com.RedRiver.hospitalsystem.personal_service.infra.model;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 龙世超
 * @since 2022-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_schedule")
public class Schedule implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 排班id
     */
    @TableId(value = "schedule_id", type = IdType.AUTO)
    private Integer scheduleId;

    /**
     * 人员id
     */
    private Integer peopleId;

    /**
     * 科室id
     */
    private Integer subjectId;

    /**
     * 排班创建人id
     */
    private Integer accountId;

    /**
     * 排班的日期 例2022-05-07
     */
    private String scheduleDate;

    /**
     * 排班的时间 例 0代表夜班，1代表上午，2代表下午
     */
    private Integer scheduleTime;

    /**
     * 总号数
     */
    private Integer scheduleNumber;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 人员类别(0.医生,1.非医生)
     */
    private Integer schedulrType;

    /**
     * 逻辑删除
     */
    @TableField("isDeleted")
    @TableLogic
    private Integer isDeleted;
}
